#!/usr/bin/env python
# -*- coding: utf-8 -*-
""""""
__author__ = "Lei Chen <hide1713@gmail.com>"
import unittest
import sys
sys.path.append("../")
from src.hitp_file_reader import HitpFileReader

class TestHitpFileReader(unittest.TestCase):
    """Unit test for HitpFileReader"""
    def test_read_value_from_file(self, ):
        """
        """
        reader = HitpFileReader()
        result = reader.read_hitp_values_from_file("hitp/COG0028.cons")
        self.assertAlmostEqual(-0.399557, result[0])
        self.assertEqual(647, len(result))
            
if __name__ == '__main__':
    unittest.main()
